import request from '@/utils/request'

// 查询一级分类列表
export function listLabelFirst(query) {
  return request({
    url: '/information/labelFirst/list',
    method: 'get',
    params: query
  })
}

// 查询一级分类详细
export function getLabelFirst(id) {
  return request({
    url: '/information/labelFirst/' + id,
    method: 'get'
  })
}

// 新增一级分类
export function addLabelFirst(data) {
  return request({
    url: '/information/labelFirst',
    method: 'post',
    data: data
  })
}

// 修改一级分类
export function updateLabelFirst(data) {
  return request({
    url: '/information/labelFirst',
    method: 'put',
    data: data
  })
}

// 删除一级分类
export function delLabelFirst(id) {
  return request({
    url: '/information/labelFirst/' + id,
    method: 'delete'
  })
}

// 导出一级分类
export function exportLabelFirst(query) {
  return request({
    url: '/information/labelFirst/export',
    method: 'get',
    params: query
  })
}